Builder

public final class Builder

A builder of TouchPoint.

Builders are created by invoking newBuilder}. Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Functions

Link copied to clipboard
public TouchPoint build()
Returns a new TouchPoint instance built from the current state of this builder.
Link copied to clipboard
public TouchPoint.Builder force(float force)
Sets the applied force of the touch point.
Link copied to clipboard
public TouchPoint.Builder positionInWidget(Point widgetPosition)
Sets the touch position relative to the bounds of the widget.
Link copied to clipboard
public TouchPoint.Builder radiusX(float radiusX)
Sets the X axis radius of the touch ellipse.
Link copied to clipboard
public TouchPoint.Builder radiusY(float radiusY)
Sets the Y axis radius of the touch ellipse.
Link copied to clipboard
public TouchPoint.Builder rotationAngle(float rotationAngle)
Sets the rotation angle of the touch.